package com.zfl.thread.day05;

import java.util.concurrent.atomic.AtomicIntegerArray;

public class AtomicIntegerArrayDemo01 {
    public static void main(String[] args) {
        AtomicIntegerArray arr = new AtomicIntegerArray(new int[] {1,2,3,4,5});
        System.out.println(arr.get(0));
        System.out.println(arr.compareAndSet(1,2,20));
        System.out.println(arr);
    }
}
